package cn.cvs.pojo;

import java.sql.Date;

/**
 * @author Jane
 * @date 2024-01-22 16:17
 *
 * //库存信息
 */

public class Storage {
    private Integer id;              //入库id
    private String srCode;          //入库记录编码
    private String goodsName;       //商品名
    private String goodsDesc;       //商品描述
    private String goodsUnit;       //商品单位
    private Double goodsCount;      //入库数量
    private Double totalAmount;     //入库商品总额
    private Integer payStatus;      //支付状态 1.未支付 2.已支付
    private Integer createdUserId;  //创建人id
    private Date createdTime;       //创建时间
    private Integer updatedUserId;  //更新人id
    private Date updatedTime;       //更新时间

    private Supplier supplier;      //供货商类

    public Storage() {
    }

    public Storage(Integer id, String srCode, String goodsName, String goodsDesc, String goodsUnit, Double goodsCount, Double totalAmount, Integer payStatus, Integer createdUserId, Date createdTime, Integer updatedUserId, Date updatedTime, Integer supplierId, String supplierName, Supplier supplier) {
        this.id = id;
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplier = supplier;
    }

    @Override
    public String toString() {
        return "Storage{" +
                "id=" + id +
                ", srCode='" + srCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount=" + goodsCount +
                ", totalAmount=" + totalAmount +
                ", payStatus=" + payStatus +
                ", createdUserId=" + createdUserId +
                ", createdTime=" + createdTime +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime=" + updatedTime +
                ", supplier=" + supplier +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSrCode() {
        return srCode;
    }

    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public Double getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(Double goodsCount) {
        this.goodsCount = goodsCount;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Integer updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }
}
